<template>
  <el-pagination
    @size-change="handleSizeChange"
    @current-change="handleCurrentChange"
    :current-page="currentPage"
    :page-sizes="[10, 20, 30, 40]"
    :page-size="10"
    layout="total, prev, pager, next,jumper"
    :total="100">
  </el-pagination>
</template>

<script>
export default {
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
  },
  data() {
    return {
      currentPage: 5,
    };
  },
};
</script>

<style lang="less" scoped>
/deep/.el-pagination{
  background-color: #FFFFFF;
  padding: 10px 20px !important;
}
</style>
